package com.zy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Schedule implements Serializable {
    /**
     * id
     * 主题
     * 开始时间
     * 结束时间
     * 地点
     * 参与用户
     * 内容
     * 提醒时间
     * 发起人
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String startTime;
    private String endTime;
    private String address;
    private List<User> users;
    private List<String> userId;
    private String content;
    private String remind;
    private Integer promoter;
    private String createTime;

    public Schedule(String title, String startTime, String endTime, String address, List<String> userId, String content, String remind, Integer promoter,String createTime) {
        this.title = title;
        this.startTime = startTime;
        this.endTime = endTime;
        this.address = address;
        this.userId = userId;
        this.content = content;
        this.remind = remind;
        this.promoter = promoter;
        this.createTime = createTime;
    }
}
